import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ArgumentosPOST extends HttpServlet {
	public void doPost(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		res.setContentType("text/plain");
		PrintWriter out = res.getWriter();
		out.println("Nombre: " + req.getParameter("nombre"));
		out.println("Apellidos: " + req.getParameter("apellidos"));
	}
}